<div class="buttons-tab noafter">
  <a href="#tab1" class="tab-link button active">借款人</a>
 <!-- <a href="#tab2" class="tab-link button">审核记录</a>-->
  <a href="#tab3" class="tab-link button">投资记录</a>
  <a href="#tab4" class="tab-link button">留言列表</a>
</div>
<div class="blank056"></div>
<div class="tabs">
	<div id="tab1" class="tab active">
		<div class="content-block-title"> 借款详情</div>
		<div class="list-block row no-gutter">
                <div class="item-box" style="display:block">
					{$data.deal.description}
				</div>
		</div>
		<div class="blank056"></div>		

	</div><!--tab1-->
	<div id="tab2" class="tab">
		<div class="bg_fff">
            <div class="content-block-title row no-gutter bb1">
				<div class="col-40 text-center">审核项目</div>
				<div class="col-20 text-center">状态</div>
				<div class="col-40 text-center">通过时间</div>
			</div>
        </div>    
            <div class="list-block">
          		<ul>
					<?php if($data.u_info.idcardpassed == 1 or ($data.u_info.idcardpassed == 0 and $data.credit_file.credit_identificationscanning.file_list)): ?><li class="row no-gutter">
					<div class="item-box">
						<div class="col-33 text-center">身份证认证</div>

						<div class="col-33 text-center">
							<?php if($data.u_info.idcardpassed == 1): ?><span class="Tick">已通过</span><?php else: ?>待审核<?php endif; ?>
						</div>

						<div class="col-33 text-center">
							<?php if($data.u_info.idcardpassed == 1): echo (to_date($data["u_info"]["idcardpassed_time"],"Y-m-d")); endif; ?>
						</div>
					</div>

				</li><?php endif; ?>

				<?php if( $data.u_info.workpassed == 1 ) :?>
					<li class="row no-gutter">
					<div class="item-box">
						<div class="col-33 text-center">工作认证</div>
						<div class="col-33 text-center">
							<?php if($data.u_info.workpassed == 1): ?><?php if( $data.expire.workpassed_expire == true   ): ?>
							已过期
							<?php else: ?><span class="Tick">已通过</span><?php endif; ?>
							<?php else: ?>
							待审核<?php endif; ?>
						</div>
						<div class="col-33 text-center">
							<?php if($data.expire.workpassed_expire == false): if($data.u_info.workpassed == 1): echo ($data["u_info"]["workpassed_time"]); endif; endif; ?>
						</div>
					</div>
				    </li>
				<?php endif; ?>
				<?php if($data.u_info.creditpassed == 1 or ($data.u_info.creditpassed == 0 and $data.credit_file.credit_credit.file_list)): ?><li class="row no-gutter">
					<div class="item-box">
						<div class="col-33 text-center">信用报告</div>
						<div class="col-33 text-center"><?php if($data.u_info.creditpassed == 1): ?> <?php if( $data.u_info.creditpassed == 1 ): ?>
							已过期
							<?php else: ?><span class="Tick">已通过</span><?php endif; ?>
							<?php else: ?>
							待审核<?php endif; ?>
						</div>
						<div class="col-33 text-center">
							<?php if($data.expire.creditpassed_expire == false): if($data.u_info.creditpassed == 1): echo (to_date($data["u_info"]["creditpassed_time"],"Y-m-d")); endif; endif; ?>
						</div>
					</div>
				</li>
					<?php endif; ?>

         <!-- xsz -->
					<?php if($data.u_info.incomepassed == 1 or ($data.u_info.incomepassed == 0 and $data.credit_file.credit_incomeduty.file_list)): ?><li class="row no-gutter">
					<div class="item-box">
						<div class="col-33 text-center">收入认证</div>
						<div class="col-33 text-center"><?php if($data.u_info.incomepassed == 1): ?><?php if($data.expire.incomepassed_expire == true): ?>
							已过期
							<?php else: ?><span class="Tick">已通过</span><?php endif; ?>
							<?php else: ?>
							待审核<?php endif; ?>
						</div>
						<div class="col-33 text-center">
							<?php if ( !$data.expire.incomepassed_expire): ?>
							<?php if($data.u_info.incomepassed == 1): echo (to_date($data["u_info"]["incomepassed_time"],"Y-m-d")); endif; ?>
							<?php endif; ?>
						</div>
					</div>
				</li>
					<?php endif; ?>

			<?php if($data.u_info.housepassed == 1 or ($data.u_info.housepassed == 0 and $data.credit_file.credit_house.file_list)): ?><li class="row no-gutter">
			<div class="item-box">
				<div class="col-33 text-center">房产认证</div>
				<div class="col-33 text-center">
					<?php if($data.u_info.housepassed == 1): ?><span class="Tick">已通过</span><?php else: ?>
					待审核<?php endif; ?>
				</div>
				<div class="col-33 text-center"> <?php if($data.u_info.housepassed == 1): echo (to_date($data["u_info"]["housepassed_time"],"Y-m-d")); endif; ?>
				</div>
			</div>
		</li><?php endif; ?>

			<?php if($data.u_info.carpassed == 1 or ($data.u_info.carpassed == 0 and $data.credit_file.credit_car.file_list)): ?><li class="row no-gutter">
			<div class="item-box">
				<div class="col-33 text-center">
					购车证明
				</div>
				<div class="col-33 text-center">
					<?php if($data.u_info.carpassed == 1): ?><span class="Tick">已通过</span><?php else: ?>
					待审核<?php endif; ?>
				</div>
				<div class="col-33 text-center">
					<?php if($data.u_info.carpassed == 1): echo (to_date($data["u_info"]["carpassed_time"],"Y-m-d")); endif; ?>
				</div>
			</div>
		</li><?php endif; ?>

			<?php if($data.u_info.marrypassed == 1 or ($data.u_info.marrypassed == 0 and $data.credit_file.credit_marriage.file_list)): ?><li class="row no-gutter">
			<div class="item-box">
				<div class="col-33 text-center">结婚认证</div>
				<div class="col-33 text-center"><?php if($data.u_info.marrypassed == 1): ?><span class="Tick">已通过</span><?php else: ?>
					待审核<?php endif; ?></div>
				<div class="col-33 text-center"><?php if($data.u_info.marrypassed == 1): echo (to_date($data["u_info"]["marrypassed_time"],"Y-m-d")); endif; ?>
				</div>
			</div>
		</li><?php endif; ?>

			<?php if($data.u_info.edupassed == 1 or ($data.u_info.edupassed == 0 and $data.credit_file.credit_graducation.file_list)): ?><li class="row no-gutter">
			<div class="item-box">
				<div class="col-33 text-center">学历认证 </div>

				<div class="col-33 text-center">
					<?php if($data.u_info.edupassed == 1): ?><span class="Tick">已通过</span><?php else: ?>
					待审核<?php endif; ?>
				</div>

				<div class="col-33 text-center"><?php if($data.u_info.edupassed == 1): echo (to_date($data["u_info"]["edupassed_time"],"Y-m-d")); endif; ?>
				</div>
			</div>
		</li><?php endif; ?>

				<?php if($data.u_info.skillpassed == 1 or ($data.u_info.skillpassed == 0 and $data.credit_file.credit_titles.file_list)): ?><li class="row no-gutter">
				<div class="item-box">
					<div class="col-33 text-center">职称认证</div>
					<div class="col-33 text-center">
						<?php if($data.u_info.skillpassed == 1): ?><span class="Tick">已通过</span><?php else: ?>
						待审核<?php endif; ?>
					</div>
					<div class="col-33 text-center">
						<?php if($data.u_info.skillpassed == 1): echo (to_date($data["u_info"]["skillpassed_time"],"Y-m-d")); endif; ?>
					</div>
				</div>
		    	</li>
	           <?php endif; ?>

	            <?php if($data.u_info.videopassed == 1 or ($data.u_info.videopassed == 0 and $data.u_info.has_send_video == 1)): ?><li class="row no-gutter">
					<div class="item-box">
						<div class="col-33 text-center">视频认证</div>
						<div class="col-33 text-center">
							<?php if($u_info["videopassed"] == 1): ?><span class="Tick">已通过</span><?php else: ?>
							待审核<?php endif; ?>
						</div>
						<div class="col-33 text-center">
							<?php if($u_info["videopassed"] == 1): echo (to_date($data["u_info"]["videopassed_time"],"Y-m-d")); endif; ?>
						</div>
					</div>
				</li>
	           <?php endif; ?>

				<?php if($data.u_info.mobiletruepassed == 1 or ($data.u_info.mobiletruepassed == 0 and $data.credit_file.credit_mobilereceipt.file_list)): ?><li class="row no-gutter">
				<div class="item-box">
					<div class="col-33 text-center">手机实名认证</div>
					<div class="col-33 text-center">
						<?php if($data.u_info.mobiletruepassed == 1): ?><span class="Tick">已通过</span><?php else: ?>
						待审核<?php endif; ?>
					</div>
					<div class="col-33 text-center">
						<?php if($data.u_info.mobiletruepassed == 1): echo (to_date($data["u_info"]["mobiletruepassed_time"],"Y-m-d")); endif; ?>
					</div>
				</div>
		     	</li>
	            <?php endif; ?>
					<?php if($data.u_info.residencepassed == 1 or ($data.u_info.residencepassed == 0 and $data.credit_file.credit_residence.file_list == true)): ?><li class="row no-gutter">
					<div class="item-box">
						<div class="col-33 text-center">居住地证明</div>
						<div class="col-33 text-center"><?php if($data.u_info.residencepassed == 1): ?><if condition="$data.expire.residencepassed_expire">
							已过期
							<?php else: ?><span class="Tick">已通过</span><?php endif; ?>
							<?php else: ?>
							待审核<?php endif; ?>
						</div>
						<div class="col-33 text-center">
							<?php if($data.expire.residencepassed_expire == false): if($data.u_info.residencepassed == 1): echo (to_date($data["u_info"]["residencepassed_time"],"Y-m-d")); endif; endif; ?>
						</div>
					</div>
				</li>
					</if>
               </ul>
            </div>
	</div><!--tab2-->
	<div id="tab3" class="tab">
		<div class="bg_fff">
		<div class="content-block-title row no-gutter bb1">
			<div class="col-20 text-center">投资人</div>
			<div class="col-35 text-center">金额</div>
			<div class="col-45 text-center">时间</div>
		</div>
		</div>
        <div class="list-block">
        	 <ul>
         	 <foreach name="data.load_list" item="load">
           
                <li class="row no-gutter">
                    <div class="item-box">
                    	<div class=" col-20 text-center">{$load.user_name|utf_substr}</div>
                    	<div class=" col-35 text-center">{$load.money|format_price}</div>
                    	<div class=" col-45 text-center">{$load.create_time|to_date="Y-m-d"}
                    		{$load.create_time|to_date="H:i"}
						</div>
					</div>
                </li>
            
         	 </foreach>
          
            </ul>
        </div>
	</div><!--tab3-->
	<div id="tab4" class="tab">
         <div class="contentblock">
         	
        	<if condition="$data.message">
	          <ul>
	          	<foreach name="data.message" item="load">
	          	<li class="w_b bb1">
	          		<div class="img_block"><img src="{wap_user_avatarcreate_time|wap_user_avatar=$load.user_id}" style="width:100%; height:100%;"/></div>
					<div class="d_block w_b_f_1">
						<div class="top clearfix">
							<span class="name">{$load.user_name} </span>
							<span class="time">{$load.create_time|to_date="Y-m-d"}</span>
						</div>
						<p class="middle">{$load.content}</p>
					</div>
	          	</li>
				</foreach>
			  </ul>
			 <else/>
			 <div class="list-block row no-gutter">
			 	<div class="item-box text-center">
					暂无留言
				</div>
			 </div>
			 </if>
        </div>
		<div class="pro_detail_foot leave_word btn_leave_word but_box ">
			<div class="bg_ea544a but_this">留言</div>
		</div>
		<div class="Leave_Word">
			<div class="Leave_Word_block">	
				 <input type="hidden" id="title" value="留言板">
				 <textarea id="content" name="content"></textarea> 
			</div>
			<div class="lish_but clearfix" avatar="">
				 	<div class="abolish  lish">取消</div>
				 	<if condition="$data.act eq 'transfer_mobile'">
				 	<input type="hidden" id="rel_table" value="transfer">
				 	<input type="hidden" id="rel_id" value="{$data.transfer_id}">
				 	<else/>
				 	<input type="hidden" id="rel_table" value="deal">
				 	<input type="hidden" id="rel_id" value="{$data.deal.id}">
				 	</if>
				 	<input type="hidden" id="deal_id" value="{$data.deal.id}">
					<div id="add_msg" class="publish  lish ">发表</div>
			</div>
		</div>
	</div><!--tab4-->
</div>

